/*
 * PingStats.h
 *
 *  Created on: Jun 21, 2013
 *      Author: shaohong
 */

#ifndef PINGSTATS_H_
#define PINGSTATS_H_
#include <string>

using namespace std;

namespace dnm {

class PingStats {
public:
	PingStats();
	virtual ~PingStats();

	string hostName;
	string hostIP;
	bool successful;	// whether the ping was successful
	double rtt_min;
	double rtt_max;
	double rtt_avg;
	double rtt_mdev;
	unsigned int numOfPktSent;
	unsigned int numOfPktRcvd;

	string toString();
};

} /* namespace dnm */
#endif /* PINGSTATS_H_ */
